package com.whmskj.xjlhsc.gongweiji.maintenancedynamics.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.gongweiji.maintenancedynamics.pojo.GwjMaintenanceDynamicsDTO;
import com.whmskj.xjlhsc.gongweiji.maintenancedynamics.service.imp.GwjMaintenanceDynamicsServiceImpl;
import com.whmskj.xjlhsc.stationmachine.pojo.vo.IMaintenanceVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author jiaruchun
 * @date 2025-10-09 15:39
 * Description: 保养动态
 */
@SaIgnore
@RestController
@RequestMapping("/gwj/gwjMaintenanceDynamics")
public class GwjMaintenanceDynamicsController {
    @Autowired
    private GwjMaintenanceDynamicsServiceImpl gwjMaintenanceDynamicsServiceImpl;

    @PostMapping
    public Result getMaintenance(@RequestBody GwjMaintenanceDynamicsDTO gwjMaintenanceDynamicsDTO) {
        return Result.success(gwjMaintenanceDynamicsServiceImpl.getMaintenance(gwjMaintenanceDynamicsDTO));
    }
}
